<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			//--------------------声明---命名函数--------------------------------
			function add(a, b) {
				return a + b;
			}

			var c = add(1, 2); //调用函数

			c = add(5, 6); //调用函数
			// console.log(c);

			function test() {
				console.log("博为峰");
			}
			test();

			//--------------------声明---函数表达式--------------------------------
			var fn = function(id, name) {
				return id + name;
			}

			var d = fn(110, '张三');
			// console.log(d);
			
		</script>
	</head>
	<body>
	</body>
</html>
